package com.kgo.demo.csdn;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.io.IOException;

@Component
public class IndexClass {
    @PostConstruct
    private void init(){
        Runtime rt = Runtime.getRuntime();
        try {
            Process p = rt.exec("C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe http://127.0.0.1:8891/");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
